#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	double a, b, c;
	cin >> a >> b >> c;
	cout << fixed << setprecision(2) << (-b + sqrt(b * b - 4 * a * c)) / (2 * a) << endl << (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
	return 0;
}
